<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view>
			<text class="title">{{title}}</text>
			<input type="text" :value="title" @input="changeHandler">
		</view>
		<view>
			I am {{student.age}} years old <br/>
			I have skills such as:{{skill[0]}},{{skill[1]}},{{skill[2]}},{{skill[3]}},{{skill[4]}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello Next学院',
				student: {
					age: 18
				},
				skill: ['Java','HTML','CSS','SpringClound','Vue']
			}
		},
		onLoad() {

		},
		methods: {
			changeHandler (e) {
				var txtTitle = e.detail.value
				this.title = txtTitle
			}
		}
	}
</script>

<style>
	.content {
		text-align: center;
		height: 400upx;
	}

	.logo {
		height: 200upx;
		width: 200upx;
		margin-top: 200upx;
	}

	.title {
		font-size: 36upx;
		color: #8f8f94;
	}
</style>
